package com.ddd.springboot_mybatis_redis.controller;

import com.ddd.springboot_mybatis_redis.domain.Student;
import com.ddd.springboot_mybatis_redis.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Administrator
 * @description: TODO
 * @date 2021年 10月19日 20:40
 */
@RestController
public class StudentController {
    @Autowired
    private StudentService studentService;

    @GetMapping("/student")
    public List<Student> findAll(){
        return studentService.findAll();
    }
}
